package com.xhsj.user.hr.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhsj.user.hr.system.entity.Dict;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 字典表 Mapper 接口
 * </p>
 *
 * @author suxiaolin
 * @since 2020-05-21
 */
@Mapper
public interface DictMapper extends BaseMapper<Dict> {

    List<Map<String, Object>> findDictByType(String type);

    /**
     * 通过type集合查询字典
     */
    List<Map<String, Object>> findDictByTypeList(@Param("typeList") List<String> typeList);
}
